﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Evpo.ContactData.Common;
using Evpo.ContactData.Data;

namespace Evpo.ContactData.ViewModel
{
    public class ModelFactory
    {
        public IConnection CreateConnection(string connString)
        {
            return new Connection(connString);
        }

        internal IRelationship CreateRelationship()
        {
            return new Relationship();
        }

        internal IContact CreateContact()
        {
            return new Contact();
        }

        internal ContactAdapter CreateContactAdapter(IConnection conn)
        {
            return new ContactAdapter((Connection)conn);
        }


        internal TitleAdapter CreateTitleAdapter(IConnection conn)
        {
            return new TitleAdapter((Connection)conn);
        }

        internal RelationshipAdapter CreateRelationshipAdapter(IConnection conn)
        {
            return new RelationshipAdapter((Connection)conn);
        }

        internal AddressAdapter CreateAddressAdapter(IConnection conn)
        {
            return new AddressAdapter((Connection)conn);
        }

    }
}
